﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using EZCRS.HCMS.SqlClient;

namespace EZCRS.HCMS.Bll.baseinfo
{
    public class BllAdminInfo
    {
        private string SqlStr = "";
        #region 后台用户个性表
        public DataSet WebAdminInfo_Item(string Admid)
        {
            Admid = CFun.VerifySQL(Admid);
            return new sql_AdmWebAdminInfo().WebAdminInfo_Item(Admid);
        }
        #endregion
        #region 后台用户个性表信息添加
        /// <summary>
        /// 添加后台用户个性表
        /// </summary>
        /// <returns></returns>
        public bool WebAdminInfo_Add(string Css, string Languagetype,string helptype ,string Admid)
        {
            return new sql_AdmWebAdminInfo().WebAdminInfo_Add(Css, Languagetype,helptype, Admid);
        }
        #endregion
        #region 后台用户个性表信息修改
        /// <summary>
        /// 修改后台用户个性表
        /// </summary>
        /// <returns></returns>
        public bool WebAdminInfo_Update(string Css, string Languagetype,string helptype, string Admid)
        {
            Admid = CFun.VerifySQL(Admid);
            return new sql_AdmWebAdminInfo().WebAdminInfo_Update(Css, Languagetype,helptype, Admid);
        }
        #endregion

        /////////////////////////////////////////////
        #region 后台用户个性表
        /// <summary>
        /// 前台用户个性化信息
        /// </summary>
        /// <param name="Orgid"></param>
        /// <param name="Orgtype"></param>
        /// <returns></returns>
        public DataSet WebPageInfo_Item(string Orgid, string Orgtype)
        {
            Orgid = CFun.VerifySQL(Orgid);
            Orgtype = CFun.VerifySQL(Orgtype);
            return new sql_AdmWebPageInfo().WebPageInfo_Item(Orgid, Orgtype);
        }
        #endregion

        #region 前台应用设置添加和修改
        /// <summary>
        /// 添加和修改后台用户个性表
        /// </summary>
        /// <returns></returns>
        public bool WebPageInfo_Add(string Orgtype, string Orgid, string Webdomain, string Noscroll, string Css, string Sloganresv, string Sloganmod, string Slogancxl, string Slogannewresv, string Emailfrom, string Emailalias, string Emailtitle, string Ratecode, string Languagetype, string Id)
        {
            Id = CFun.VerifySQL(Id);
            return new sql_AdmWebPageInfo().WebPageInfo_Add(Orgtype, Orgid, Webdomain, Noscroll, Css, Sloganresv, Sloganmod, Slogancxl, Slogannewresv, Emailfrom, Emailalias, Emailtitle, Ratecode, Languagetype, Id);
        }
        #endregion

        #region
        /// <summary>
        /// 保存系统设置
        /// </summary>
        /// <param name="scorevalid"></param>
        /// <param name="scoretype"></param>
        /// <param name="roomchange"></param>
        /// <param name="scoreratechg"></param>
        /// <param name="scorebuy"></param>
        /// <param name="scoreratebuy"></param>
        /// <returns></returns>
        public bool savesetup(int gid, string haved, string scorevalid, string scoretype, string roomchange, string scoreratechg, string scorebuy, string scoreratebuy)
        {
            return new sql_AdmWebPageInfo().savesetup(gid, haved, scorevalid, scoretype, roomchange, scoreratechg, scorebuy, scoreratebuy);
        }

        /// <summary>
        /// 返回购买积分的比率，0为未开通购买功能
        /// </summary>
        /// <param name="gid"></param>
        /// <returns></returns>
        public decimal buyscore_rate(int gid)
        {
            return new sql_AdmWebPageInfo().buyscore_rate(gid);
        }

        #endregion
    }
}
